package com.design.pattern.behavioral.commond;

/**
 * description
 *
 * @author RenQiQiang 2019/03/28 10:47
 */
public class OpenCourseVideoCommand implements Command{
    private CourseVideo courseVideo;

    public OpenCourseVideoCommand(CourseVideo courseVideo) {
        this.courseVideo = courseVideo;
    }

    @Override
    public void execute() {
        courseVideo.open();
    }
}
